home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / News Stacks / Feb '90AMUG News™.cpt / Feb '90AMUG News™ / card_15647.txt < prev    next >
Text File  |  1990-03-11  |  2KB  |  71 lines

  1. -- card: 15647 from stack: in
  2. -- bmap block id: 15956
  3. -- flags: 0000
  4. -- background id: 2135
  5. -- name: Diamond
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=11 top=60 right=321 bottom=261
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 2
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: 
  20.  
  21.  
  22. -- part 2 (field)
  23. -- low flags: 00
  24. -- high flags: 0000
  25. -- rect: left=262 top=60 right=334 bottom=508
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 0
  29. -- font id: 2
  30. -- text size: 10
  31. -- style flags: 0
  32. -- line height: 13
  33. -- part name: 
  34.  
  35.  
  36. -- part contents for background part 1
  37. ----- text -----
  38. 22
  39.  
  40. -- part contents for card part 1
  41. ----- text -----
  42. procedure MoveTo (h, v: Integer);
  43. procedure Move (dh, dv: Integer);
  44. procedure ResizeTo (width, height: Integer);
  45. procedure Resize (dWidth, dHeight: Integer);
  46. procedure Zoom;
  47. procedure Drag;
  48. procedure Grow;
  49. procedure GoAway;
  50. procedure Draw;
  51. procedure Update;
  52. procedure Activate;
  53. procedure Deactivate;
  54. procedure Select;
  55. procedure DoInContent (eRecord: EventRecord);
  56. function IsActive: Boolean;
  57. end;
  58. Example 2:  Using the Toolbox routine HideWindow to implement the Hide method.
  59. {method to hide a window. }
  60.  
  61. -- part contents for card part 2
  62. ----- text -----
  63. procedure TWindow.Hide;
  64. begin
  65. HideWindow(wPtr);
  66. end;
  67.     The TWindow object is easily understood because windows are an identifiable element of the Macintosh interface.  Other elements are not as visible but make just as useful objects.  In this program there are two:  the event object, TEvent and the error handler object, TError.  Let's look at them.
  68. Events are the means whereby the operating system notifies a Macintosh application that some action is required.  How that action is handled is up to the application.  Some of the events are caused by the user
  69.  clicking the 
  70. mouse or pushing 
  71. a key.